/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.iecg.api.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.Date;

/**
 *
 *
 * @author zjc
 * @date 2019-09-05 11:13:10
 */
@Data
public class IecgCheckReport {

    /**
     * 编号
     */
	@Id
    private String id;
    /**
     * 用户ID
     */
	@Indexed
    private Long userId;
	/**
	 * 文件名称
	 */
	@ApiModelProperty(value="文件名称")
	private Integer fileNo;
	/**
	 * 设备id
	 */
	@ApiModelProperty(value="设备id")
	private String deviceId;
	/**
	 * 本次检测ID
	 */
	@Indexed
	@ApiModelProperty(value="本次检测业务号")
	private String bizId;
    /**
     * 最高心率
     */
	@ApiModelProperty(value="最高心率")
    private Integer maxHr;
    /**
     * 平均心率
     */
	@ApiModelProperty(value="平均心率")
    private Integer avgHr;
	/**
	 * 最低心率
	 */
	@ApiModelProperty(value="最低心率")
	private Integer minHr;

	/**
	 * 稍快稍慢
	 */
	@ApiModelProperty(value="稍快稍慢")
	private Integer littleFastSlow;

	/**
	 * 过快过慢
	 */
	@ApiModelProperty(value="过快过慢")
	private Integer tooFastSlow;

	/**
	 * 正常
	 */
	@ApiModelProperty(value="正常")
	private Integer normal;

	@ApiModelProperty(value="qrs间期(毫秒)")
	private Integer qrs;
	@ApiModelProperty(value="P-R间期(毫秒)")
	private Integer p_r;
	@ApiModelProperty(value="QT间期(毫秒)")
	private Integer qt;
	@ApiModelProperty(value="QTc间期(毫秒)")
	private Integer qtc;
	@ApiModelProperty(value="心率(次/分)")
	private Integer hr;
	@ApiModelProperty(value="诊断分析")
	private String  analyse;

	@ApiModelProperty(hidden=true)
	private IecgCheckCondition iecgCheckCondition;

	/**
	 * 传输模式
	 */
	@ApiModelProperty(value="传输模式(静态:1,动态:2)")
	private Integer mode;

	/**
	 * 图片Url
	 */
	@ApiModelProperty(value="图片Url")
	private String img;
	/**
	 * 异常点
	 */
	@ApiModelProperty(value="异常点")
	private String  outliers;

	@CreatedDate
	@ApiModelProperty(hidden=true)
	private Date createTime;

	@LastModifiedDate
	@ApiModelProperty(hidden=true)
	private Date updateTime;

}
